<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <script src="../oneday/vue.js"></script>
</head>

<body>
    <div id="root">
        <div @click="handleClick">
           {{content}}
        </div>
    </div>

    <script>
        new Vue({
            el: "#root",
            data: {
               content: "hello"
            },
            methods: {
                handleClick: function() {
                    // alert(123)
                    this.content="world"
                }
            },
        })
    </script>
</body>

</html>